home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Games / Connect4 / source / window / playerinputwin.c < prev    next >
Encoding:
Text File  |  2001-03-18  |  2.4 KB  |  58 lines

  1. SubWindow, playerinputwin = WindowObject,
  2.     MUIA_Window_Title, "New player details",
  3.     MUIA_Window_ID   , MAKE_ID('P','L','D','E'),
  4.     MUIA_Window_Width , MUIV_Window_Width_Default,
  5.     MUIA_Window_Height, MUIV_Window_Height_Default,
  6.     MUIA_Window_ScreenTitle, "Connect 4",
  7.     MUIA_Window_CloseGadget, FALSE,
  8.  
  9.     WindowContents,
  10.          VGroup,
  11.              Child, HGroup,
  12.                  Child, ColGroup(1),
  13.                      Child, Label2("Name:"),
  14.                      Child, Label2("Type:"),
  15.                  End,
  16.                  Child, RowGroup(2),
  17.                      Child, piw_name = StringObject,
  18.                          MUIA_String_Format, MUIV_String_Format_Left,
  19.                          MUIA_String_MaxLen, NAME_LEN,
  20.                          MUIA_Frame, MUIV_Frame_String,
  21.                          MUIA_CycleChain, 1,
  22.                          MUIA_String_AdvanceOnCR, TRUE,
  23.                      End,
  24.                      Child, HGroup,
  25.                          Child, piw_cycle = CycleObject,
  26.                              MUIA_Cycle_Entries, cycle_playertype_strings,
  27.                          End,
  28.                          Child, piw_type = StringObject,
  29.                              MUIA_String_Format, MUIV_String_Format_Left,
  30.                              MUIA_String_MaxLen, TYPE_LEN,
  31.                              MUIA_Frame, MUIV_Frame_String,
  32.                              MUIA_CycleChain, 1,
  33.                              MUIA_String_AdvanceOnCR, TRUE,
  34.                          End,
  35.                      End,
  36.                  End,
  37.              End,
  38.              Child, HGroup,
  39.                  Child, piw_okbutton = TextObject,
  40.                           MUIA_Text_Contents, "OK",
  41.                           MUIA_Text_SetMax, TRUE,
  42.                           MUIA_Frame, MUIV_Frame_Button,
  43.                           MUIA_InputMode, MUIV_InputMode_RelVerify,
  44.                           MUIA_Background, MUII_ButtonBack,
  45.                  End,
  46.                  Child, RectangleObject, End,
  47.                  Child, piw_cancelbutton = TextObject,
  48.                           MUIA_Text_Contents, "Cancel",
  49.                           MUIA_Text_SetMax, TRUE,
  50.                           MUIA_Frame, MUIV_Frame_Button,
  51.                           MUIA_InputMode, MUIV_InputMode_RelVerify,
  52.                           MUIA_Background, MUII_ButtonBack,
  53.                  End,
  54.              End,
  55.          End,
  56. End,
  57.  
  58.